package com.zpphis.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zpphis.entity.User;
import com.zpphis.mapper.UserMapper;
import com.zpphis.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zpp
 * @since 2022-11-22
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Page<Map<String, Object>> pageExtend(Page<Map<String, Object>> p, String queryString) {
        queryString = "%" + queryString + "%";
        return userMapper.selectPageExtend(p, queryString);
    }
}
